Skip to content

fix(mcpx): repair mcpx workflow failures from run 43707720627 (#10487) - #10490

Merged
dezren39 merged 1 commit into
mainfrom
queue/17361-10487-mcpx-workflow-fix
Nov 15, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/17361-10487-mcpx-workflow-fix

Conversation

@dezren39

@dezren39 dezren39 commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Fixes #10487

Repairs the deterministic failures from mcpx workflow run 43707720627 (schedule, head 7d3dceb):

  • basic: plugin tests + basic: lint (one root cause) — .github/workflows/mcpx.yml: the v2 test-file existence loop tested the literal directory plugin/opencode/v2/ instead of plugin/opencode/v2/$f, so it always reported a registered file missing; the same unused loop variable was the lint job's shellcheck SC2034 at mcpx.yml:455. The loop now checks and names $f.
  • stress, both platforms (settings) — docs/changes/research-and-findings-nix-slice.md had no compendium manifest entry (TestEveryDocumentHasAChapter): added as a not-compendium docs-history fragment for mcpx docs: research and incidental findings -- AI, harnesses, protocols, TypeScript, and a Nix section #1871, matching its sibling fragments. docs/environment.md was stale (TestTheEnvironmentDocIsCurrent): regenerated with the test's -update mode.
  • stress, both platforms (e2e) — MCPX_SCRIPT_LANGUAGE (script.language) was in neither envguard table (TestEveryRegistryVariableIsHarnessSetOrSafe): classified safeMCPX — the harness does not set it, the default governs.
  • stress, macOS (daemon + cli) — TestPrincipalForUnixConnReadsPeerUID and TestSSHConnectFallsBackPastSlowHandshake bound unix sockets under t.TempDir(), whose macOS path exceeds the 104-byte sun_path limit (bind: invalid argument). Both now use the existing testsupport.SocketDir (the codex-proxy: PR #431's {env:CODEX_PROXY_PORT} baseURL has no fallback — opencode outside a home-manager shell gets an empty port #434 helper built for exactly this). TestRelocated made the same short-path assumption for its "short" state dir; it now uses testsupport.SocketDir too.
  • stress, macOS (runner) — TestDispatchedWorkdirPolicyAllocatesARunnerDirectory compared the child's physical cwd (/private/var/...) against the unresolved t.TempDir() WorkRoot (/var/...): the test now resolves the root's symlinks before the prefix check.

Isolated, not fixed here: the e2e package's 600s stress timeout on both platforms. TestAShutdownDoesNotCutACallInFlight passes standalone in 99s (its a_short_call subtest alone takes 91s), so this is cumulative wall time under -race -shuffle -repeat, not a deterministic failure. Tracked in #10489.

Verification (Linux, this branch):

  • go test ./internal/settings ./internal/runner -count=1 — pass (full packages)
  • Targeted: TestTheEnvironmentDocIsCurrent, TestEveryDocumentHasAChapter, TestEveryRegistryVariableIsHarnessSetOrSafe, TestDispatchedWorkdirPolicyAllocatesARunnerDirectory, TestPrincipalForUnixConnReadsPeerUID, TestRelocated, TestSSHConnectFallsBackPastSlowHandshake — all pass
  • bun test plugin/opencode/v2/ — 73 pass, 0 fail; the fixed existence loop passes for all six registered files
  • shellcheck on the fixed workflow snippet — SC2034 gone, clean
  • go vet on the touched packages — clean
  • macOS-only test paths use the established SocketDir helper; they are exercised by the nightly macOS stress job, not by a Mac available to this lane.

Queue: task 17361, lane code-c.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 15, 2026 11:41
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-15T11:41:46.340462Z
We couldn’t complete this review. Comment @codex review to try again.
e17bcef PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 15, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 55 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3817cdc3-a6ab-4fbc-bf10-0436e56cbce8
Commits

Reviewing files that changed from the base of the PR and between 7d3dceb and e17bcef.

Files selected for processing: 8

  • .github/workflows/mcpx.yml
  • pkgs/mcpx/docs/compendium.manifest.json
  • pkgs/mcpx/docs/environment.md
  • pkgs/mcpx/internal/cli/ssh_endpoint_test.go
  • pkgs/mcpx/internal/daemon/authz_test.go
  • pkgs/mcpx/internal/daemon/paths_resolve_test.go
  • pkgs/mcpx/internal/e2e/envguard_test.go
  • pkgs/mcpx/internal/runner/dispatch_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 merged commit 87e0133 into main Nov 15, 2026
1 check passed
@dezren39
dezren39 deleted the queue/17361-10487-mcpx-workflow-fix branch November 15, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

developing-today/code: mcpx workflow failing on main (run 43707720627)

1 participant